package com.multi.thread.chapter03.demo10;

public class ThreadCustom extends Thread {
	
	private Custom custom;

	public ThreadCustom(Custom custom) {
		this.custom = custom;
	}
	
	@Override
	public void run() {
		while (true) {
			custom.getValue();
		}
	}

}
